from django.urls import path
from lapi_app.view.bug_view.bug_manage import bug_list, add_bug, del_bug
from lapi_app.view.bug_view.img_view import input_img
from lapi_app.view.bug_view.project_manage import project_list, edit_project, add_project, del_project, project_data, \
    add_edit_menu, del_menu
from lapi_app.view.testcase_view.get_tree import bug_menu_tree

urlpatterns = [

    path("api/project/bug_menu_tree", bug_menu_tree),  # 获取变量列表

    path("api/project/project_list", project_list),  # 获取项目列表

    path("api/project/edit_project", edit_project),  # 编辑项目

    path("api/project/add_project", add_project),  # 新增项目

    path("api/project/del_project", del_project),  # 删除项目

    path("api/project/project_data", project_data),  # 获取项目列表

    path("api/bug/bug_list", bug_list),  # 获取bug列表

    path("api/bug/add_edit_menu", add_edit_menu),  # 新增或编辑目录

    path("api/bug/del_menu", del_menu),  # 删除模块，文件夹

    path("api/bug/add_bug", add_bug),  # 新增缺陷

    path("api/media/input_img", input_img),  # 上传图片

    path("api/bug/del_bug", del_bug)  #删除bug

]
